package com.huihui.springbootshiro.dao;

import com.huihui.springbootshiro.entity.Perms;
import com.huihui.springbootshiro.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author huipanxing
 */
@Mapper
public interface UserDao {

    /**
     *
     * @param user
     */
   void save(User user);

    //根据用户名查询业务
    User findUserByName(String username);

    //根据用户名返回所有校色
    User findRolesByUserName(String username);

    //根据校色id查询权限集合
    List<Perms> findPermsByRoleId(String id);
}
